/**
 * Created by kangli on 2018/3/7.
 */
function addNoticeMana(btn){
    var html ='   <div class="g-confirmDiv"> ' +
        '<div class="g-confirmlist clearfix"><p class="fl">标题：</p> ' +
        '<input type="text" class="form-control fl" style="width: 200px" placeholder="请输入标题"> </div> ' +
        '<div class="g-confirmlist clearfix"><p class="fl">正文：</p> ' +
        '<textarea class="form-control fl nm-textarea" rows="10" style="width: 500px" placeholder="请输入备注"> </textarea> </div> ' +
        '<div class="g-confirmlist clearfix"> <div class="nm-uploadDiv"> ' +
        '<button class=" pf-chooseFileBtn fl" type="submit" style="color: #333">选择文件</button> ' +
        '<form id="seekHelpForm" class="fl"> <input name="photos" id="inputFile" class="nm-inputfile" type="file"> </form> ' +
        '<p class="pf-filename fl"></p> </div> </div> </div>';
    parent.layer.open({
        type: 1,
        area: ['700px', ''],
        title: '新增公告',
        btn: ['确定','取消'],
        shadeClose: true, //点击遮罩关闭
        content: html,
        success: function(layero, index){
            parent.$(".nm-inputfile").on("change",function(){
                parent.$(".pf-filename").text($(this).val());
            })
        },
        yes: function(index){

        },
        btn2: function(index){
            parent.layer.close(index);
            /*   return false;*/
        }
    });
}